<?php
class Engine_Form_Element_Checkbox extends Engine_Form_Element {

    protected $options = array();

    public function setOptions(array $options) {
        $this->options = $options;
    }

    public function compile() {
        $result = '';
        $result .= '<label class="checkbox">'."\r\n";
        $result .= '<input type="checkbox" value="' . $this->value . '">' . "\r\n";
        $result .= '<span class="metro-checkbox">' . $this->name . '</span>';
        $result .= '</label>'."\r\n";

        return $result;
    }


    public function populate($value) {
        $this->setValue($value);
    }
}